{include file='header.tpl'}
<form method="post" action="{geturl action='customize'}">
<fieldset>
<legend>空间信息编辑</legend>
<div class="row">
<label for="form_title">空间名称</label>
<input id="form_title" name="title" type="text" value="{$fp->title}" />
{include file='lib/error.tpl' error=$fp->getError('title')}
</div>

<div class="row">
<label for="form_subtitle">空间简介</label>
<input id="form_subtitle" name="subtitle" type="text" value="{$fp->title}" />
{include file='lib/error.tpl' error=$fp->getError('subtitle')}
</div>

<div class="row">
<label for="form_menu">显示菜单</label>
<ul>
{foreach from=$menu key=key item=m}
<li>
<input id="form_menu" type="checkbox" name="menu{$key}" 
{if $m.0 == 1}checked="checked"{/if} value="{$key}" />{$m.2} 
</li>
{/foreach}
</ul>
</div>

<div class="row">
<label for="form_menu">显示项目</label>
<ul>
{foreach from=$item key=key item=i}
<li>
<input id="form_item" type="checkbox" name="item{$key}" 
{if $i.0 == 1}checked="checked"{/if} value="{$key}" />{$i.2} 
</li>
{/foreach}
</ul>

</div>
<div>
<input class="submit" type="submit" value="提交" />
</div>
</fieldset>
</form>
{include file='footer.tpl'}